/**
 * @description: 获取导航数据
 * @data { 
     categoryId: 1005000 ,
     page: 1,
     pageSize: 20,
     sortField: 'publishTime' | 'orderNum' | 'evaluateNum'
   } 
 * @return {*}
 */
import http from '@/utils/http'
   
export function category (id:any){
    return http({
        url:'/category',
        params:{
            id
        }
    })
}
export const getSubCategoryAPI = (data:object) => {
    return http({
      url:'/category/goods/temporary',
      method:'POST',
      data
    })
}